package com.ihunanren.biz.weixin.ao;

import com.ihunanren.biz.result.Result;
import com.ihunanren.dao.pojo.SchoolCurriculumDefinedDO;
import com.ihunanren.dao.pojo.SchoolCurriculumInfoDO;

/**
 * @author kalman03
 */
public interface ISchoolCurriculumAO {

	/**
	 * 新增一条学校and志愿者记录
	 */
	Result insertStudent(String ip,SchoolCurriculumDefinedDO definedDO);
	
	boolean updateStudentPassword(String email,String ip,String password);
	
	/**
	 * 查询包含：学校+院系+专业+班级+课程表信息
	 * @param diyName
	 * @return
	 */
	Result queryAllSchoolCurriculum(String diyName);
	
	/**
	 * 查询包含：学校+院系+专业+班级+课程表信息
	 * @param userName 志愿者
	 * @return
	 */
	Result queryAllSchoolCurriculumByUser(String userName);
	
	Result queryAllSchoolCurriculumByDefinedId(long id);
	/**
	 * 新增一条课程表信息
	 */
	Result insertSchoolCurriculumInfo(SchoolCurriculumInfoDO infoDO);
	/**
	 * 更新一条课程表信息
	 * @param infoDO
	 * @return
	 */
	Result updateSchoolCurriculumInfo(SchoolCurriculumInfoDO infoDO);
	
	SchoolCurriculumDefinedDO getByEmail(String email);
	
	SchoolCurriculumDefinedDO getSchoolCurriDefinedById(long id);
	
	
}
